<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	var base = "${base}/";
</script>
<!--框架必需-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery-1.7.1.js"></script>
<script type="text/javascript" src="${base}/scripts/framework.js"></script>
<link href="${base}/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="${base}/css/sky/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function(){
	top.Dialog.close()
})
function openWinFind(settleId){
	var diag = new top.Dialog();
	diag.Title = "修改结算方式";
	diag.URL = "${base}/admin/settleCategory/findById.action?settleCategory.id=" + settleId;
	diag.Height=350;
	diag.CancelEvent = function(){
		diag.innerFrame.contentWindow.location.reload();
		diag.close();
	};
	diag.show();
}
</script>
</head>
<body>
<div class="position" id="top_list">
	<div class="center">
	<div class="left">
	<div class="right">
		<span>当前位置：客户管理 >> 客户列表</span>
	</div>	
	</div>	
	</div>
</div>
<div id="hbox">
	<div class="bs_nav">
		<div class="bs_navleft">
		    <ul>
		    	<form action="${base}/admin/customer/findByKeyWord.action" method="post" target="customer_right">
		    	<li><span class="img_find"></span></li>
				<li>请选择查询方式：</li>
				<li>
					<select name="searchType">
						<option value="0">按客户编号查询</option>
						<option value="1">按客户呢称查询</option>
						<option value="2">按真实姓名查询</option>
						<option value="3">按联系电话查询</option>
						<option value="4">按电子邮箱查询</option>
					</select>
				</li>
				<li><input type="text" style="width:150px;" name="keyWord"/></li>
				<li><input type="submit" class="button" value="查询"/></li>
				</form>
			</ul>
		</div>
		<div class="bs_navright">
			<a onclick="openWinAdd()"><span class="icon_add">新增客户</span></a>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<div id="scrollContent" class="border_gray">
<table class="tableStyle">
	<tr>
		<th width="5%" class="th-title"><input type="checkbox"/></th>
		<th width="10%" class="th-title">编号</th>
		<th width="15%" class="th-title">结算方式名称</th>
		<th width="25%" class="th-title">描述</th>
		<th width="15%" class="th-title">添加时间</th>
		<th width="20" class="th-title">基本操作</th>
	</tr>
	<#if (settleCategoryList??) && (settleCategoryList?size>0)>
		<#list settleCategoryList as settleCategory>
			<tr>
				<td><input type="checkbox"/></td>
				<td>${(settleCategory.id)!0 }</td>
				<td>${(settleCategory.settleName)!'' }</td>
				<td>${(settleCategory.remark)!'' }</td>
				<td>${(settleCategory.createDate?string('yyyy-MM-dd HH:mm:ss'))!''}</td>
				<td>
					<a onclick="openWinFind(${(settleCategory.id)!0 })"><span class="icon_edit">修改</span></a>
					<a onclick="return confirm('您确定删除该结算方式？')" href="${base}/admin/settleCategory/delete.action?settleCategory.id=${(settleCategory.id)!0 }"><span class="icon_edit">删除</span></a>
				</td>
			</tr>
		</#list>
	<#else>
		<tr>
			<td colspan="6">暂无结算方式记录</td>
		</tr>
	</#if>
</table>
<#include "/WEB-INF/tool/pager.ftl">
</div>
</body>
</html>